﻿mainModule.controller("listCtrl", ["$scope", "localizationSvc", "$controller", "$timeout", "staticCacheSvc", function ($scope, apiSvc, $controller, $timeout, staticCacheSvc) {
    "use strict";
    // instantiate base controller    
    $scope.autoLoadOnRender = false;    
    $controller('BaseListCtrl', { $scope: $scope, apiSvc: apiSvc });

    $scope.resetCache = function () {
        apiSvc.resetCache().then(function () { staticCacheSvc.reset(); });
    }

    $timeout(function () {
        $scope.query.CultureID = 1;
        $scope.loadList();
    }, 0);
    
}]);




